package com.twotiger.and.bean;

import java.io.Serializable;

import com.twotiger.and.util.StringUtils;

/**
 * Created by victor on 2014/10/15 0015.
 */
public class Investment implements Serializable {
    private static final long serialVersionUID = 1 << 2L;

    public String capital; //
    public String interest; //
    public double yield; //
    public long timestamp; //
    public long ctime; //
    public String customerId; //
    public String trxId; //
    public int projectId; //
    public double amount; //
    public String oughtedTime;
    public String realCapital;
    public String statusName;
    public int status;
    public String realTime;
    public String realInterest;
    public String overdueFee;
    public String repaymentTime; // 还款时间    repaymentTime   String(17)  是

    public String getRepaymentTime() {
        return repaymentTime;
    }

    public void setRepaymentTime(String repaymentTime) {
        this.repaymentTime = repaymentTime;
    }

    public String getRealTime() {
        return realTime;
    }

    public void setRealTime(String realTime) {
        this.realTime = realTime;
    }

    public String getRealInterest() {
        return realInterest;
    }

    public void setRealInterest(String realInterest) {
        this.realInterest = realInterest;
    }

    public String getOverdueFee() {
        return overdueFee;
    }

    public void setOverdueFee(String overdueFee) {
        this.overdueFee = overdueFee;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getRealCapital() {
        return realCapital;
    }

    public void setRealCapital(String realCapital) {
        this.realCapital = realCapital;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getCapital() {
        return capital;
    }

    public void setCapital(String capital) {
        this.capital = capital;
    }

    public String getOughtedTime() {
        return oughtedTime;
    }

    public void setOughtedTime(String oughtedTime) {
        this.oughtedTime = oughtedTime;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public String getInterest() {
        return interest;
    }

    public void setInterest(String interest) {
        this.interest = interest;
    }

    public double getYield() {
        return yield;
    }

    public void setYield(double yield) {
        this.yield = yield;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public long getCtime() {
        return ctime;
    }

    public void setCtime(long ctime) {
        this.ctime = ctime;
    }

    public String getCustomerId() {
        if (StringUtils.isEmpty(customerId)) {
            return "0";
        }
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getTrxId() {
        return trxId;
    }

    public void setTrxId(String trxId) {
        this.trxId = trxId;
    }

    public int getProjectId() {
        return projectId;
    }

    public void setProjectId(int projectId) {
        this.projectId = projectId;
    }
}
